package com.gt.web.srv.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gt.web.srv.domain.SsUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @Author jh
 * @Date 2024/5/16 21:47
 * @PackageName:com.gt.web.srv.mapper
 * @ClassName: ArticleMapper
 * @Description: biz_article表数据访问层
 */
public interface SsUserMapper extends BaseMapper<SsUser> {

    /**
     * 根据openId查询用户
     * @param openId 小程序openId
     * @return 用户信息
     */
    SsUser selectByOpenId(@Param("openId") String openId);

    /**
     * 根据身份证查询用户
     * @param peopleCard 身份证号
     * @return 用户信息
     */
    SsUser selectByPeopleCard(@Param("peopleCard") String peopleCard);

}
